import request from '@/utils/request'

const api = {
    appList: '/appIndex/lists',
    appEdit: '/appIndex/lists',
    appAppointList: '/appAppoint/lists',
    appAppointEdit: '/appAppoint/edit',
    appSloganEdit: '/appAppoint/sloganEdit',
    shopBannerList: '/shopIndex/add',
    shopBannerAdd: '/shopIndex/add'
}

export function shopBannerList (parameter) {
    return request({
        url: api.shopBannerList,
        method: 'get',
        params: parameter
    })
}

export function shopBannerAdd (parameter) {
    return request({
        url: api.shopBannerAdd,
        method: 'post',
        data: parameter
    })
}

export function appSloganEdit (parameter) {
    return request({
        url: api.appSloganEdit,
        method: 'post',
        data: parameter
    })
}

export function appAppointEdit (parameter) {
    return request({
        url: api.appAppointEdit,
        method: 'post',
        data: parameter
    })
}

export function appAppointList (parameter) {
    return request({
        url: api.appAppointList,
        method: 'get',
        params: parameter
    })
}

export function appEdit (parameter) {
    return request({
        url: api.appEdit,
        method: 'post',
        data: parameter
    })
}

export function appList (parameter) {
    return request({
        url: api.appList,
        method: 'get',
        params: parameter
    })
}
